from selenium import webdriver

def initDriver(brower="Chrome",timeout=30):
    driver=None
    if brower=="Chrome" or brower=="chrome":
        driver = webdriver.Chrome()
        driver.maximize_window()
        driver.implicitly_wait(timeout)
    elif brower=="Firfox" or brower=="firfox":
        driver = webdriver.Firefox()
        driver.maximize_window()
        driver.implicitly_wait(timeout)
    else:
        pass
    return driver
